@extends('admin.author.layout.layout')
@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">
           提现账单
        </div>
        <!-- /.panel-heading -->
        <div class="panel-body">
            <div class="table-responsive">
                @if(session('success'))
                    <div class="alert alert-success">
                        {{session('success')}}
                    </div>
                @endif
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th style="text-align:center">id</th>
                            <th style="text-align:center">提现金额</th>
                            <th style="text-align:center">提现状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach($res as $k=>$v)
                        <tr>
                            <td style="text-align:center">{{$v->id}}</td>
                            <td style="text-align:center">{{$v->apply}}</td>
                            <td style="text-align:center;color:green">{!! str_replace([0,1],['等待审核','提现完成'],$v->treat) !!}</td>
                        </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
            <!-- /.table-responsive -->
        </div>
        <!-- /.panel-body -->
    </div>
@endsection